package com.farm.command;

// 具体命令类
public class StartCommand implements Command {
    private AgriculturalMachineReceiver machine;

    public StartCommand(AgriculturalMachineReceiver machine) {
        this.machine = machine;
    }

    @Override
    public void execute() {
        machine.start();
    }

    @Override
    public void undo() {
        machine.stop();
    }
}
